package org.csu.mypetstore.persistence;

import org.apache.ibatis.annotations.Mapper;
import org.csu.mypetstore.domain.Category;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Repository
@Mapper
public interface CategoryMapper {

    Category getCategory(String categoryId);
    //Category getCategory(String categoryId);有一个接口在mapper里就要有一个映射文件mapper.xml

    List<Category> getCategoryList();
}
